# -*- coding: utf-8 -*-
__author__ = 'ooo'
__date__ = ' 11:10'

from django.conf.urls import url
from . import views

urlpatterns = [

    # 用户注册
    url(r'^register$', views.UserRegister.as_view(), name='register'),

    # 用户激活
    url(r'active/(?P<code>\w+)$', views.UserActive.as_view(), name='active'),

    # 用户登录
    url(r'^login$', views.UserLogin.as_view(), name='login'),

    # 用户登出
    url(r'^logout$', views.UserLogout.as_view(), name='logout'),

    # 忘记密码
    url(r'^findpwd$', views.FindPassword.as_view(), name='findpwd'),

    # 重置密码
    url(r'^resetpwd/(?P<code>\w+)$', views.ResetPassword.as_view(), name='resetpwd'),

    # 修改密码
    url(r'^modifypwd$', views.ModifyPassword.as_view(), name='modifypwd'),
]